package com.aspose.cells;

class zblp extends zcj {
   zblp(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = 1.0F;
      float var3 = 1.0F;
      com.aspose.cells.b.a.b.zo[] var4 = new com.aspose.cells.b.a.b.zo[10];
      com.aspose.cells.b.a.b.a.ze var5 = new com.aspose.cells.b.a.b.a.ze();
      switch(this.e.l.a.size()) {
      case 1:
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var2 = var1.h() - 2.0F * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F) * var1.h();
            var3 = var1.i() - var1.i() * 0.20101851F;
         } else {
            var2 = var1.h() - 2.0F * var1.h() * 0.23685186F;
            var3 = var1.i() - com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F * var1.i();
         }
         break;
      case 2:
         var2 = var1.h() - 2.0F * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F) * var1.h();
         var3 = var1.i() - com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F * var1.i();
         break;
      default:
         var3 = var1.i() - var1.i() * 0.20101851F;
         var2 = var1.h() - 2.0F * var1.h() * 0.23685186F;
      }

      if (var2 <= 0.0F && var3 == var1.h()) {
         var4[0] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() / 2.0F + this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() / 2.0F + this.h);
         var4[3] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
         var5.a(var4[0], var4[2]);
         var5.a(var4[1], var4[2]);
         var5.a(var4[2], var4[3]);
         return var5;
      } else if (var2 <= 0.0F && var3 <= 0.0F) {
         var4[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() / 2.0F + this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
         var5.a(var4[0], var4[1]);
         var5.a(var4[1], var4[2]);
         var5.a(var4[2], var4[0]);
         return var5;
      } else {
         switch(this.e.a) {
         case 1:
            var4[0] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() - var3 + this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() - var3 + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2 + this.g, var1.i() - var3 + this.h);
            var4[4] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2 + this.g, var3 + this.h);
            var4[5] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var3 + this.h);
            var4[6] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F + this.g, var1.i() + this.h);
            var4[7] = new com.aspose.cells.b.a.b.zo(this.g, var3 + this.h);
            var4[8] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + this.g, var3 + this.h);
            var4[9] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + this.g, var1.i() - var3 + this.h);
            break;
         case 2:
            var4[0] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() - var3 + this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() - var3 + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2 + this.g, var1.i() - var3 + this.h);
            var4[4] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2 + this.g, var3 + this.h);
            var4[5] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var3 + this.h);
            var4[6] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F + this.g, var1.i() + this.h);
            var4[7] = new com.aspose.cells.b.a.b.zo(this.g, var3 + this.h);
            var4[8] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + this.g, var3 + this.h);
            var4[9] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + this.g, var1.i() - var3 + this.h);
            break;
         case 3:
            var4[0] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() - var3);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h(), var1.i() - var3);
            var4[3] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2, var1.i() - var3);
            var4[4] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2, var3);
            var4[5] = new com.aspose.cells.b.a.b.zo(var1.h(), var3);
            var4[6] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F, var1.i());
            var4[7] = new com.aspose.cells.b.a.b.zo(this.g, var3);
            var4[8] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F, var3);
            var4[9] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F, var1.i() - var3);
            break;
         case 4:
            var4[0] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() - var3 + this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() - var3 + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2 + this.g, var1.i() - var3 + this.h);
            var4[4] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + var2 + this.g, var3 + this.h);
            var4[5] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var3 + this.h);
            var4[6] = new com.aspose.cells.b.a.b.zo(var1.h() / 2.0F + this.g, var1.i() + this.h);
            var4[7] = new com.aspose.cells.b.a.b.zo(this.g, var3 + this.h);
            var4[8] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + this.g, var3 + this.h);
            var4[9] = new com.aspose.cells.b.a.b.zo((var1.h() - var2) / 2.0F + this.g, var1.i() - var3 + this.h);
         }

         var5.a(var4[0], var4[1]);
         var5.a(var4[1], var4[2]);
         var5.a(var4[2], var4[3]);
         var5.a(var4[3], var4[4]);
         var5.a(var4[4], var4[5]);
         var5.a(var4[5], var4[6]);
         var5.a(var4[6], var4[7]);
         var5.a(var4[7], var4[8]);
         var5.a(var4[8], var4[9]);
         var5.a(var4[9], var4[0]);
         var5.i();
         return var5;
      }
   }
}
